import Vue from 'vue';
import Router from 'vue-router';
import Index from '@/views/Index.vue';
import Detail from '@/views/Detail.vue'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail,
      props: true
    }
  ],
});
